home *** CD-ROM | disk | FTP | other *** search
- property animChannel, animDataList, tool, machineList, machineNum, firstToolChan, toolList, menuButtonChan, printButChannel, videoList, menuButObject, helpButObject, iconButsObject, toolButtonObjectList, magPictChan, firstMagPict, firstIconChan, firstIconPict, iconPointList, altView, wrenchData, firstMagLinePict, firstRollChan, cropMarksChan, firstCropCast, firstHatChan, musicList, rulerSoundList, keyCoverChan, keyCoverBmap, keyVideoFlag, subSection, machineSoundList, wrenchDelay, delayCounter
- global gMenuObject, gActorList, gHiddenActorList, gQTViewerObject, gFlushObject, gRollAnimButton, gCustomCursor, gAlbumObject, gMusicObject, gRotatorObject, gHelpObject, gCDpath, gHardHatObject, gFileSep
-
- on birth me
- set subSection to #JobSite
- set firstHatChan to 21
- set firstRollChan to 5
- set cropMarksChan to 30
- set animChannel to 32
- set firstCropCast to the number of cast "frameA"
- set animDataList to [:]
- addProp(animDataList, "Loader", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 20, 19, 18, 17, 16, 21, 22, 0])
- addProp(animDataList, "Digger", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 12, 11, 10, 9, 8, 7, 0])
- addProp(animDataList, "Dozer", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 8, 10, 11, 12, 3, 2, 1, 0])
- addProp(animDataList, "Sroller", [0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0])
- addProp(animDataList, "Grader", [0, 1, 2, 3, 4, 5, 4, 3, 2, 1, 0])
- addProp(animDataList, "Dumptruk", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 12, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0])
- addProp(animDataList, "Rainbow", [0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 5, 6, 7, 8, 8, 7, 6, 5, 4, 3, 2, 1, 0])
- addProp(animDataList, "Foreman", [0, 1, 2, 2, 2, 2, 3, 4, 5, 6, 7, 8, 7, 8, 9, 10, 11, 0])
- addProp(animDataList, "Sailboat", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
- addProp(animDataList, "Recycle", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 1, 0])
- set machineList to ["LOADER": ["0713.MOV", "LOADPOV.MOV", "LOADROT.MOV"], "DIGGER": ["0716.MOV", "EXCAPOV.MOV", "DIGROT.MOV"], "DOZER": ["0714.MOV", "BULLPOV.MOV", "BULLROT.MOV"], "SROLLER": ["0718.MOV", EMPTY, "ROLLROT.MOV"], "GRADER": ["0717.MOV", EMPTY, "GRADROT.MOV"], "DUMPTRUK": ["0715.MOV", EMPTY, "DUMROT.MOV"]]
- set machineSoundList to ["0814N", "0813N", "0816N", "0819N", "0817N", "0815N"]
- set wrenchData to [[10, "0713VO44"], [7, "0716VO44"], [4, "0714VO44"], [5, "0718VO44"], [5, "0717VO44"], [11, "0715VO44"]]
- set wrenchDelay to 7
- set firstMagPict to the number of cast "Loader.Mag"
- set firstIconPict to the number of cast "LoaderIconDim"
- set firstMagLinePict to the number of cast "MagLineArt1"
- set magPictChan to 2
- set firstIconChan to 3
- set iconPointList to [point(597, 22), point(597, 73), point(601, 133), point(603, 184), point(599, 238), point(594, 297)]
- set firstToolChan to 12
- set keyCoverChan to 20
- set keyCoverBmap to the number of cast "KeyCover"
- set menuButtonChan to 27
- set printButChannel to 10
- set toolList to [:]
- addProp(toolList, #magnifier, [0, the number of cast "magnifierCursor"])
- addProp(toolList, #camera, [0, the number of cast "cameraCursor"])
- addProp(toolList, #Tv, [0, the number of cast "tvCursor"])
- addProp(toolList, #Wrench, [0, the number of cast "wrenchCursor"])
- addProp(toolList, #Radio, [0, the number of cast "radioCursor"])
- addProp(toolList, #Ruler, [0, the number of cast "rulerCursor"])
- addProp(toolList, #Rotator, [0, the number of cast "rotatorCursor"])
- addProp(toolList, #Keys, [0, the number of cast "keysCursor"])
- set tool to #None
- set altView to 0
- set musicList to ["0713MU", "0716MU", "0714MU", "0718MU", "0717MU", "0715MU"]
- set rulerSoundList to ["0713VO43", "0716VO43", "0714VO43", "0718VO43", "0717VO43", "0715VO43"]
- return me
- end
-
- on setup me
- clearAllActors()
- puppetPalette(0)
- drawHardHat(me)
- set magButton to birth(script "Rollover Anim Button Class", "activateTool( g3dObject, #Magnifier )", firstToolChan, firstToolChan, 4, "07VO42", "07RO42")
- set the soundWait of magButton to 0
- setAt(getProp(toolList, #magnifier), 1, magButton)
- set cameraButton to birth(script "Rollover Anim Button Class", "activateTool( g3dObject, #Camera )", firstToolChan + 1, firstToolChan + 1, 5, "07VO41", "07RO41")
- set the soundWait of cameraButton to 0
- setAt(getProp(toolList, #camera), 1, cameraButton)
- set menuButObject to birth(script "Rollover Anim Button Class", "goMenu( g3dObject, me )", menuButtonChan, menuButtonChan, 5, "RCA-07VO01", "RCA-07RO01")
- set helpButObject to birth(script "Rollover Anim Button Class", "help( g3dObject, me )", menuButtonChan + 1, menuButtonChan + 1, 11, EMPTY, "RCA-05RO02")
- set ROsoundObjectList to []
- set hiddenROsounds to ["0727RO", "0725RO", "0723RO", "0722RO"]
- repeat with x = 1 to count(hiddenROsounds)
- add(ROsoundObjectList, birth(script "RolloverSound Class", x, getAt(hiddenROsounds, x)))
- end repeat
- add(gActorList, birth(script "ObjectGroup Class", ROsoundObjectList))
- set ROsoundObjectList to []
- set machROsounds to ["0716RO", "0715RO", "0717RO", "0718RO", "0714RO", "0713RO"]
- repeat with x = 1 to count(machROsounds)
- add(ROsoundObjectList, birth(script "RolloverSound Class", x + 14, getAt(machROsounds, x)))
- end repeat
- add(gActorList, birth(script "ObjectGroup Class", ROsoundObjectList))
- repeat with x = 1 to 2
- set toolData to getAt(toolList, x)
- set toolButObj to getAt(toolData, 1)
- add(gActorList, toolButObj)
- end repeat
- add(gActorList, menuButObject)
- add(gActorList, helpButObject)
- end
-
- on setupMagScreen me
- clearAllActors()
- add(gActorList, menuButObject)
- add(gActorList, helpButObject)
- puppetSprite(menuButtonChan, 1)
- puppetSprite(menuButtonChan + 1, 1)
- set iconButsObject to birth(script "Rollover Class", firstIconChan, firstIconChan + 5, machineNum)
- set the soundList of iconButsObject to machineSoundList
- set the soundPath of iconButsObject to EMPTY
- set the soundFlag of iconButsObject to 1
- add(gActorList, iconButsObject)
- set tvButton to birth(script "Rollover Anim Button Class", "activateTool( g3dObject, #Tv )", firstToolChan + 2, firstToolChan + 2, 3, "0713VO45", "0713RO45")
- set the soundWait of tvButton to 0
- setAt(getProp(toolList, #Tv), 1, tvButton)
- set wrenchButton to birth(script "Rollover Anim Button Class", "activateTool( g3dObject, #Wrench )", firstToolChan + 3, firstToolChan + 3, 4, "0713VO44", "0713RO44")
- set the soundWait of wrenchButton to 0
- setAt(getProp(toolList, #Wrench), 1, wrenchButton)
- set radioButton to birth(script "Rollover Anim Button Class", "activateTool( g3dObject, #Radio )", firstToolChan + 4, firstToolChan + 4, 3, "A713VO46", "A713RO46")
- set the soundWait of radioButton to 0
- setAt(getProp(toolList, #Radio), 1, radioButton)
- set rulerButton to birth(script "Rollover Anim Button Class", "activateTool( g3dObject, #Ruler )", firstToolChan + 5, firstToolChan + 5, 3, "0713VO43", "0713RO43")
- set the soundWait of rulerButton to 0
- setAt(getProp(toolList, #Ruler), 1, rulerButton)
- set rotatorButton to birth(script "Rollover Anim Button Class", "activateTool( g3dObject, #Rotator )", firstToolChan + 6, firstToolChan + 6, 2, "0713VO47", "0713RO47")
- set the soundWait of rotatorButton to 0
- setAt(getProp(toolList, #Rotator), 1, rotatorButton)
- set keysButton to birth(script "Rollover Anim Button Class", "activateTool( g3dObject, #Keys )", firstToolChan + 7, firstToolChan + 7, 4, "0713VO48", "0713RO48")
- set the soundWait of keysButton to 0
- setAt(getProp(toolList, #Keys), 1, keysButton)
- add(gActorList, birth(script "Rollover Anim Button Class", "print( g3dObject )", 10, 10, 5, "A713VO03", "A713RO03"))
- repeat with x = 3 to count(toolList)
- set toolData to getAt(toolList, x)
- set toolButObj to getAt(toolData, 1)
- add(gActorList, toolButObj)
- end repeat
- if keyVideoFlag = 0 then
- enableKeys(me, 0)
- end if
- end
-
- on update me
- repeat with whichRoll = 0 to 2
- set rollChan to firstRollChan + whichRoll
- if rollOver(rollChan) then
- set rollFlag to 1
- exit repeat
- end if
- end repeat
- if rollFlag then
- set the locH of sprite cropMarksChan to 320
- set the castNum of sprite cropMarksChan to firstCropCast + whichRoll
- puppetSprite(cropMarksChan, 1)
- else
- puppetSprite(cropMarksChan, 0)
- end if
- end
-
- on drawHardHat me
- if the howManyHats of gHardHatObject < 100 then
- set hatChan to firstHatChan - 1 + random(4)
- set the locH of sprite hatChan to the locH of sprite hatChan + 1000
- puppetSprite(hatChan, 1)
- puppetTransition(51, 1)
- updateStage()
- end if
- end
-
- on cameraRectClick me
- if objectp(gCustomCursor) then
- if the type of gCustomCursor = #camera then
- set whichPhoto to the clickOn - firstRollChan + 1
- takePhoto(me, whichPhoto)
- end if
- end if
- end
-
- on takePhoto me, whichPhoto
- puppetSound("camerashut1")
- updateStage()
- puppetSprite(cropMarksChan, 0)
- set toolData to getProp(toolList, #camera)
- set toolButtonObject to getAt(toolData, 1)
- resetBitmap(toolButtonObject)
- set tool to #None
- cursor(-1)
- dispose(gCustomCursor)
- removeSprite(48)
- set photoName to getPropAt(the pictList of gAlbumObject, whichPhoto)
- addPhoto(gAlbumObject, photoName)
- repeat while soundBusy(1)
- end repeat
- puppetSound(0)
- showAllActors()
- clearActor(me)
- end
-
- on siteMachineClick me
- startBuffering()
- if not objectp(gRollAnimButton) then
- giveAward(gAwardsObject, "JobSite")
- if objectp(gCustomCursor) then
- if the type of gCustomCursor = #magnifier then
- goMagScreen(me)
- else
- repeat with whichRoll = 0 to 2
- set rollChan to firstRollChan + whichRoll
- if rollOver(rollChan) then
- exit repeat
- end if
- end repeat
- takePhoto(me, whichRoll + 1)
- end if
- else
- set baseCast to the castNum of sprite the clickOn
- puppetSound(the name of cast (baseCast - 1))
- set Xloc to the locH of sprite the clickOn
- set Yloc to the locV of sprite the clickOn
- set the locH of sprite the clickOn to 1000
- run3dAnim(me, baseCast, Xloc, Yloc)
- set the locH of sprite the clickOn to Xloc
- puppetSound(0)
- end if
- end if
- flushBuffer()
- end
-
- on hiddenItemClick me
- startBuffering()
- if not objectp(gRollAnimButton) and not objectp(gCustomCursor) then
- set baseCast to the castNum of sprite the clickOn + 1
- set the ink of sprite animChannel to 8
- puppetSound(the name of cast (baseCast - 2))
- run3dAnim(me, baseCast, 320, 240)
- set the ink of sprite animChannel to 36
- updateStage()
- repeat while soundBusy(1)
- end repeat
- end if
- flushBuffer()
- end
-
- on run3dAnim me, baseCast, Xloc, Yloc
- set itemName to the name of cast baseCast
- set the locH of sprite animChannel to Xloc
- set the locV of sprite animChannel to Yloc
- set animList to getProp(animDataList, itemName)
- repeat with offset in animList
- set the castNum of sprite animChannel to baseCast + offset
- updateStage()
- startTimer()
- repeat while the timer < 7
- end repeat
- end repeat
- removeSprite(animChannel)
- end
-
- on goMagScreen me
- set itemName to the name of cast the castNum of sprite the clickOn
- repeat while soundBusy(1)
- end repeat
- puppetSound(0)
- if objectp(gCustomCursor) then
- dispose(gCustomCursor)
- end if
- cursor(-1)
- clearAllActors()
- unpuppetAll()
- set tool to #None
- set altView to 0
- set machineNum to getPropPos(machineList, itemName)
- puppetPalette("JobSitePal")
- go("Grass")
- go(the frame + 1)
- puppetPalette("MagPal", 60)
- updateStage()
- predraw(me)
- puppetPalette(0)
- go("Magnifier")
- if keyVideoFlag = 0 then
- set subSection to #MagNoKeys
- else
- set subSection to #magnifier
- end if
- end
-
- on predraw me
- drawMagPict(me)
- set iconChan to firstIconChan + machineNum - 1
- set dimmedIconPict to firstIconPict + ((machineNum - 1) * 3)
- set the castNum of sprite iconChan to dimmedIconPict + 2
- set iconPoint to getAt(iconPointList, machineNum)
- set the locH of sprite iconChan to getAt(iconPoint, 1)
- set the locV of sprite iconChan to getAt(iconPoint, 2)
- puppetSprite(iconChan, 1)
- if the printEnabled of gMenuObject = 0 then
- removeSprite(printButChannel)
- puppetSprite(printButChannel, 1)
- end if
- updateKeyVideoFlag(me)
- if keyVideoFlag = 0 then
- coverKeys(me, 1)
- end if
- puppetSprite(keyCoverChan, 1)
- end
-
- on enableKeys me, trueOrFalse
- set keyData to getProp(toolList, #Keys)
- set keyObject to getAt(keyData, 1)
- if trueOrFalse = 0 then
- clearActor(keyObject)
- else
- add(gActorList, keyObject)
- end if
- end
-
- on coverKeys me, trueOrFalse
- set the castNum of sprite keyCoverChan to keyCoverBmap
- puppetSprite(keyCoverChan, 1)
- if trueOrFalse = 1 then
- set the locH of sprite keyCoverChan to 320
- set the locV of sprite keyCoverChan to 240
- else
- set the locH of sprite keyCoverChan to -1000
- end if
- end
-
- on refreshKeys me
- set oldKeyFlag to keyVideoFlag
- updateKeyVideoFlag(me)
- if (oldKeyFlag = 1) and (keyVideoFlag = 0) then
- enableKeys(me, 0)
- coverKeys(me, 1)
- else
- if (oldKeyFlag = 0) and (keyVideoFlag = 1) then
- enableKeys(me, 1)
- coverKeys(me, 0)
- end if
- end if
- end
-
- on updateKeyVideoFlag me
- set videoList to getAt(machineList, machineNum)
- if getAt(videoList, 2) = EMPTY then
- set keyVideoFlag to 0
- else
- set keyVideoFlag to 1
- end if
- end
-
- on drawMagPict me
- set the castNum of sprite magPictChan to firstMagPict + ((machineNum - 1) * 2)
- set the locH of sprite magPictChan to 320
- set the locV of sprite magPictChan to 240
- puppetSprite(magPictChan, 1)
- end
-
- on runWrenchAnim me
- set delayCounter to 0
- set animData to getAt(wrenchData, machineNum)
- set animLength to getAt(animData, 1)
- set soundName to getAt(animData, 2)
- puppetSprite(magPictChan, 0)
- puppetTransition(51, 1)
- go(label("Wrench" & string(machineNum)))
- preLoad(the frame + 1, the frame + animLength)
- sound playFile 1, gCDpath & "SOUND" & gFileSep & "WRENCH" & gFileSep & soundName
- set the mouseDownScript to "wrenchDone( g3dObject )"
- end
-
- on wrenchDone me
- startBuffering()
- sound stop 1
- set the mouseDownScript to EMPTY
- set toolData to getProp(toolList, #Wrench)
- set toolButtonObject to getAt(toolData, 1)
- resetBitmap(toolButtonObject)
- set tool to #None
- set altView to 0
- dispose(gCustomCursor)
- removeSprite(48)
- go(label("Wrench" & string(machineNum)))
- puppetSprite(magPictChan, 1)
- go(label("Magnifier") + 1)
- showAllActors()
- flushBuffer()
- end
-
- on activateTool me, toolSymbol
- startBuffering()
- set toolData to getProp(toolList, toolSymbol)
- set toolButtonObject to getAt(toolData, 1)
- if objectp(gCustomCursor) then
- resetBitmap(toolButtonObject)
- set tool to #None
- dispose(gCustomCursor)
- showAllActors()
- if toolSymbol = #camera then
- clearActor(me)
- end if
- else
- set lastTool to tool
- hideActor(toolButtonObject)
- set toolCursor to getAt(toolData, 2)
- select(toolButtonObject)
- birth(script "ColorCursor Class", toolCursor, toolSymbol)
- add(gActorList, gCustomCursor)
- if toolSymbol = #camera then
- add(gActorList, me)
- end if
- if lastTool = #Rotator then
- set toolData to getProp(toolList, lastTool)
- set toolButtonObject to getAt(toolData, 1)
- resetBitmap(toolButtonObject)
- prepareToLeave(gRotatorObject)
- set the type of sprite magPictChan to 1
- set the ink of sprite magPictChan to 8
- drawMagPict(me)
- puppetTransition(51, 1)
- go(label("Magnifier") + 1)
- if keyVideoFlag = 0 then
- set subSection to #MagNoKeys
- else
- set subSection to #magnifier
- end if
- end if
- end if
- flushBuffer()
- end
-
- on globalButtonClick me
- if objectp(gCustomCursor) then
- if the type of gCustomCursor = #camera then
- clearActor(me)
- end if
- resetTool(me)
- else
- if objectp(gRollAnimButton) then
- click(gRollAnimButton)
- end if
- end if
- end
-
- on resetTool me
- set toolType to the type of gCustomCursor
- set toolData to getProp(toolList, toolType)
- set toolButtonObject to getAt(toolData, 1)
- resetBitmap(toolButtonObject)
- showAllActors()
- dispose(gCustomCursor)
- end
-
- on selectMachine me
- if objectp(gCustomCursor) then
- resetTool(me)
- exit
- else
- if select(iconButsObject) then
- if altView then
- set oldToolData to getProp(toolList, tool)
- set toolButtonObject to getAt(oldToolData, 1)
- resetBitmap(toolButtonObject)
- add(gActorList, toolButtonObject)
- set altView to 0
- end if
- set machineNum to the clickOn - firstIconChan + 1
- refreshKeys(me)
- if keyVideoFlag = 0 then
- set subSection to #MagNoKeys
- else
- set subSection to #magnifier
- end if
- if tool = #Rotator then
- set tool to #None
- prepareToLeave(gRotatorObject)
- set the type of sprite magPictChan to 1
- set the ink of sprite magPictChan to 8
- drawMagPict(me)
- puppetTransition(51, 1)
- go(label("Magnifier") + 1)
- abort()
- else
- drawMagPict(me)
- puppetTransition(51, 1)
- updateStage()
- end if
- end if
- end if
- end
-
- on magMachineClick me
- startBuffering()
- if objectp(gCustomCursor) then
- set newTool to the type of gCustomCursor
- if altView then
- set oldToolData to getProp(toolList, tool)
- set toolButtonObject to getAt(oldToolData, 1)
- resetBitmap(toolButtonObject)
- add(gActorList, toolButtonObject)
- if tool = #Rotator then
- prepareToLeave(gRotatorObject)
- set the type of sprite magPictChan to 1
- set the ink of sprite magPictChan to 8
- end if
- end if
- if newTool = #Ruler then
- showRulerScreen(me)
- else
- if newTool = #Wrench then
- runWrenchAnim(me)
- else
- if newTool = #Rotator then
- dispose(gCustomCursor)
- puppetSprite(magPictChan, 0)
- set altView to 1
- set machine to getPropAt(machineList, machineNum)
- set videoList to getProp(machineList, machine)
- set the rotatorMovie of gRotatorObject to getAt(videoList, 3)
- set subSection to #Rotator
- go("Rotator")
- showAllActors()
- set toolData to getProp(toolList, newTool)
- set toolButtonObject to getAt(toolData, 1)
- clearActor(toolButtonObject)
- set tool to newTool
- else
- if newTool = #Tv then
- goToVideo(me, #Tv)
- else
- if newTool = #Keys then
- goToVideo(me, #Keys)
- else
- if newTool = #Radio then
- playMusic(me)
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- flushBuffer()
- end
-
- on playMusic me
- set altView to 0
- drawMagPict(me)
- puppetTransition(51, 1)
- go(label("Magnifier") + 1)
- set listOfSounds to [getAt(musicList, machineNum)]
- set songPath to gCDpath & "SOUND" & gFileSep & "SONGS" & gFileSep
- set gMusicObject to birth(script "Music Parent", me, listOfSounds, songPath)
- add(gActorList, gMusicObject)
- set the mouseDownScript to "stopSound( g3dObject )"
- end
-
- on stopSound me
- sound stop 1
- set the mouseDownScript to EMPTY
- clearActor(gMusicObject)
- set gMusicObject to EMPTY
- resetTool(me)
- set tool to #None
- dontPassEvent()
- end
-
- on showRulerScreen me
- set pictNum to firstMagPict + ((machineNum - 1) * 2) + 1
- puppetSprite(magPictChan, 1)
- set the castNum of sprite magPictChan to pictNum
- set the locH of sprite magPictChan to 320
- set the locV of sprite magPictChan to 240
- puppetTransition(51, 1)
- if tool = #Rotator then
- go(label("Magnifier") + 1)
- else
- go("Ruler")
- set altView to 1
- end if
- set tool to #Ruler
- set the mouseDownScript to "rulerDone( g3dObject )"
- sound playFile 1, gCDpath & "SOUND" & gFileSep & "RULER" & gFileSep & getAt(rulerSoundList, machineNum)
- end
-
- on rulerDone me
- showAllActors()
- dispose(gCustomCursor)
- set the mouseDownScript to EMPTY
- sound stop 1
- set toolData to getProp(toolList, #Ruler)
- set toolButtonObject to getAt(toolData, 1)
- resetBitmap(toolButtonObject)
- set the castNum of sprite magPictChan to the castNum of sprite magPictChan - 1
- puppetTransition(51, 1)
- go(label("Magnifier") + 1)
- end
-
- on print me
- clearAllActors()
- unpuppetAll()
- keepSandboxBut(menuButtonChan)
- puppetPalette("MagPal")
- go("Grass")
- go(the frame + 1)
- set the stageColor to 0
- puppetPalette("GrayScenePal", 60)
- updateStage()
- puppetPalette(0)
- unLoadCast()
- set lineArtPict to firstMagLinePict + machineNum - 1
- set the castNum of sprite 7 to lineArtPict
- set the locH of sprite 7 to 320
- set the locV of sprite 7 to 240
- set the ink of sprite 7 to 0
- puppetSprite(7, 1)
- go("MASgray")
- printBitmap(lineArtPict)
- clearAllActors()
- unpuppetAll()
- puppetSprite(48, 1)
- puppetPalette("GrayScenePal")
- go("Grass")
- go(the frame + 1)
- set the stageColor to 255
- unLoadCast()
- predraw(me)
- puppetPalette("MagPal", 60)
- updateStage()
- puppetPalette(0)
- go("Magnifier")
- puppetSprite(48, 0)
- setup(me)
- abort()
- end
-
- on goToVideo me, tvOrKeys
- set machine to getPropAt(machineList, machineNum)
- set videoList to getProp(machineList, machine)
- if tvOrKeys = #Tv then
- set videoName to getAt(videoList, 1)
- set QTnumber to machineNum
- else
- set videoName to getAt(videoList, 2)
- set QTnumber to machineNum + 6
- end if
- set the videoName of gQTViewerObject to videoName
- set paletteName to the name of cast (the number of cast videoName - 1)
- set the paletteName of gQTViewerObject to paletteName
- set the returnScript of gQTViewerObject to "returnFromQT( g3dObject )"
- cursor(-1)
- dispose(gCustomCursor)
- set tool to #None
- set altView to 0
- removeSprite(48)
- clearAllActors()
- unpuppetAll()
- puppetPalette("MagPal")
- go("Grass")
- go(the frame + 1)
- puppetPalette(paletteName, 60)
- updateStage()
- puppetPalette(0)
- unLoadCast()
- go("QT" & string(QTnumber))
- end
-
- on returnFromQT me
- prepareToLeave(gQTViewerObject)
- go("Grass")
- unLoadCast()
- go(the frame + 1)
- predraw(me)
- puppetPalette("MagPal", 60)
- updateStage()
- puppetPalette(0)
- go("Magnifier")
- abort()
- end
-
- on goMenu me, buttonObject
- if objectp(gCustomCursor) then
- dispose(gCustomCursor)
- end if
- cursor(-1)
- clearAllActors()
- unpuppetAll()
- makeButtonJump(buttonObject)
- set tool to #None
- set altView to 0
- puppetPalette(the framePalette)
- go("Grass")
- go(the frame + 1)
- unLoadCast()
- goLocationMap()
- end
-
- on help me, buttonObject
- birth(script "Help Parent", buttonObject, subSection)
- end
-